

package com.zdsx.controller;

import com.zdsx.annotation.Login;
import com.zdsx.common.utils.Result;
import com.zdsx.dto.HexMessageDTO;
import com.zdsx.entity.UserEntity;
import com.zdsx.service.HexMessageService;
import com.zdsx.service.UserService;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;

/**
 * 登录
 *
 * @author Lr
 */
@RestController
@AllArgsConstructor
@RequestMapping("/wx")
@ApiIgnore
public class HexMessageController {

    @Resource
    private HexMessageService hexMessageService;

    @Login
    @PostMapping("buildMessage")
    @ApiOperation("用户信息")
    public Result logout(@RequestBody HexMessageDTO dto) {
        String message = hexMessageService.buildMessage(dto);
        return new Result().ok(message);
    }

}